<?php
define('LIBARCHIVEUNZIP','1.00');
/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
//libARCHIVEDIR
//-------------------------------------------------------------------------------------------------------------------------
include "_dUnzip2.inc.php";
include "_dZip.inc.php";

//-------------------------------------------------------------------------------------------------------------------------

// zipdir comprime nell'archivio $dest il contenuto di $path e le eventuali sottocartelle
function unzipdir($zippato_name){
    $zip = new dUnzip2($zippato_name);
    // Activate debug
    $zip->debug = true;
    // Unzip all the contents of the zipped file to a new folder called "uncompressed"
    $zip->getList();
    $zip->unzipAll(substr($zippato_name, 0, -4));

}
//-------------------------------------------------------------------------------------------------------------------------

?>
